// import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
import QtQuick 1.1

AndroidItem {
    id: _root
    width: 720 * viewScale
    height: 50 * viewScale


    signal clicked(int key)
    signal mouseMove(variant mouse)
    signal pressed(variant mouse)
    signal released(variant mouse)

    Image{
        anchors.top: parent.top
        anchors.left: parent.left
        anchors.right: parent.right
        height: 50 * _root.viewScale
        source: isLock ? "images/notification_bar_lock.png" : "images/notification_bar.png"
    }

    ImageClock{
        anchors.top: parent.top
        anchors.bottom: parent.bottom
        anchors.right: parent.right
        anchors.rightMargin: 10 * viewScale

        visible: !isLock
        clockNumberWidth: 16 * viewScale

        numberPics: new Array("images/bar_num_0.png"
                    , "images/bar_num_1.png"
            , "images/bar_num_2.png"
            , "images/bar_num_3.png"
            , "images/bar_num_4.png"
            , "images/bar_num_5.png"
            , "images/bar_num_6.png"
            , "images/bar_num_7.png"
            , "images/bar_num_8.png"
            , "images/bar_num_9.png"
                    )
        colonPic: "images/bar_num_c.png"
    }

    MouseArea{
        anchors.fill: parent
        onClicked: {
            _root.clicked(0);
        }
        onPressed: {
            _root.pressed(mouse);
        }
        onMousePositionChanged: {
            _root.mouseMove(mouse);
        }
        onReleased: {
            _root.released(mouse);
        }
    }
}
